package com.buu.education.service.impl;

import com.buu.education.dao.EducationCommentDao;
import com.buu.education.domain.EducationCommentDO;
import com.buu.education.service.EducationCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EducationCommentServiceImpl implements EducationCommentService {

    @Autowired
    private EducationCommentDao educationCommentDao;

    @Override
    public EducationCommentDO get(Long id) {
        return educationCommentDao.get(id);
    }

    @Override
    public List<EducationCommentDO> list() {
        return educationCommentDao.list();
    }

    @Override
    public int save(EducationCommentDO obj) {
        return educationCommentDao.save(obj);
    }

    @Override
    public int update(EducationCommentDO obj) {
        return educationCommentDao.update(obj);
    }

    @Override
    public int remove(Long id) {
        return educationCommentDao.remove(id);
    }

    @Override
    public int batchRemove(List<Long> list) {
        return educationCommentDao.batchRemove(list);
    }
}
